package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MonitorMapper;
import com.ruoyi.system.domain.Monitor;
import com.ruoyi.system.service.IMonitorService;

/**
 * 班组长资格Service业务层处理
 * 
 * @author WEI&WU
 * @date 2024-05-25
 */
@Service
public class MonitorServiceImpl implements IMonitorService 
{
    @Autowired
    private MonitorMapper monitorMapper;

    /**
     * 查询班组长资格
     * 
     * @param employeeId 班组长资格主键
     * @return 班组长资格
     */
    @Override
    public Monitor selectMonitorByEmployeeId(Long employeeId)
    {
        return monitorMapper.selectMonitorByEmployeeId(employeeId);
    }

    /**
     * 查询班组长资格列表
     * 
     * @param monitor 班组长资格
     * @return 班组长资格
     */
    @Override
    public List<Monitor> selectMonitorList(Monitor monitor)
    {
        return monitorMapper.selectMonitorList(monitor);
    }

    /**
     * 新增班组长资格
     * 
     * @param monitor 班组长资格
     * @return 结果
     */
    @Override
    public int insertMonitor(Monitor monitor)
    {
        return monitorMapper.insertMonitor(monitor);
    }

    /**
     * 修改班组长资格
     * 
     * @param monitor 班组长资格
     * @return 结果
     */
    @Override
    public int updateMonitor(Monitor monitor)
    {
        return monitorMapper.updateMonitor(monitor);
    }

    /**
     * 批量删除班组长资格
     * 
     * @param employeeIds 需要删除的班组长资格主键
     * @return 结果
     */
    @Override
    public int deleteMonitorByEmployeeIds(Long[] employeeIds)
    {
        return monitorMapper.deleteMonitorByEmployeeIds(employeeIds);
    }

    /**
     * 删除班组长资格信息
     * 
     * @param employeeId 班组长资格主键
     * @return 结果
     */
    @Override
    public int deleteMonitorByEmployeeId(Long employeeId)
    {
        return monitorMapper.deleteMonitorByEmployeeId(employeeId);
    }
}
